package spring.core.examples.xml;

import org.springframework.context.ApplicationListener;

/**
 * Demonstrates how to wirte a subsriber to a specific event.
 */
public class Subscriber implements ApplicationListener<Event> {

	/**
	 * @see org.springframework.context.ApplicationListener#onApplicationEvent(org.springframework.context.ApplicationEvent)
	 */
	public void onApplicationEvent(Event event) {
		System.out.println("Empfange: " + event.toString());
	}

}
